var config = require("../config");
var inquirer = require("inquirer");
var downloadFun = require("./download");

const myAction = async function (project, args) {
  // 命令行的执行逻辑代码
  const answer = await inquirer.prompt([
    {
      type: "list",
      name: "framwork",
      choices: config.framwork,
      message: "请选择你所使用的框架"
    }
  ]);

  downloadFun(config.foramworkUrl[answer.framwork], project);
};

module.exports = myAction;
